<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use EasyWeChat\Factory;

class WeChatController extends Controller{
    public function payNotify(Request $request){
        $app = Factory::payment($config);
        $response = $app->handlePaidNotify(function($message,$fail){}
            // 判断是否成功
            // 改变订单状态
            // 生成订单完成job
        );
        return $response->send();
    }
}